//TIP To <b>Run</b> code, press <shortcut actionId="Run"/> or
// click the <icon src="AllIcons.Actions.Execute"/> icon in the gutter.
public class Main {
    public static void main(String[] args) {
        long time = System.currentTimeMillis();
        long sum = 0;
        for (int i = 1; i <= 1000_0000; i++) {
            //TIP Press <shortcut actionId="Debug"/> to start debugging your code. We have set one <icon src="AllIcons.Debugger.Db_set_breakpoint"/> breakpoint
            // for you, but you can always add more by pressing <shortcut actionId="ToggleLineBreakpoint"/>.
            System.out.println("i = " + i);
            sum+=i;
        }
        System.out.println("sum = " + sum);

        // 1. i5-2500k 20秒,java21  (System.currentTimeMillis())-time = 19697
        System.out.println("(System.currentTimeMillis())-time = " + (System.currentTimeMillis()-time));
    }
}